const cloud = require('wx-server-sdk')
cloud.init({
  env: cloud.DYNAMIC_CURRENT_ENV
})

const db = cloud.database()
exports.main = async (event, context) => {
  
  await db.createCollection('users')
  await db.createCollection('messages')

  await db.createCollection('lists')
}